package com.wanxi.test;

import java.util.Scanner;

public class Tool {
    //复用性

    /**
     * 根据提示进行用户输入
     *
     * @param str
     * @return
     */
    public String scanner(String str) {
        Scanner scanner = new Scanner(System.in);
        System.out.println(str);
        return scanner.next();
    }

    public int scannerInt(String str) {
        Scanner scanner = new Scanner(System.in);
        System.out.println(str);
        return scanner.nextInt();
    }
}
